package com.bwsoft.admin.domain;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.bwsoft.domain.User;

/**
 * 标准POJO
 * 
 * @author Cui Bowen
 */
@Entity
@Table(name = "st_standard")
public class Standard implements java.io.Serializable {

	private static final long serialVersionUID = -4976247184090151938L;
	@Id
	@Column(name = "id")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer standardId;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "uploader")
	private Account uploader;
	@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
	@JoinColumn(name = "htUploader")
	private User htUploader;
	private Boolean htscFlag;
	@OneToOne(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
	@JoinColumn(name = "fileid")
	private File file;
	private Integer type;
	@Transient
	private String typeName;
	private Integer field;
	@Transient
	private String fieldName;

	private Integer status;
	private Integer lookPower;
	@Transient
	private String statusName;
	private Boolean displayStatus;
	private Date addTime;
	private String standardName;

	public Integer getStandardId() {
		return standardId;
	}

	public void setStandardId(Integer standardId) {
		this.standardId = standardId;
	}

	public Account getUploader() {
		return uploader;
	}

	public void setUploader(Account uploader) {
		this.uploader = uploader;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public Boolean getDisplayStatus() {
		return displayStatus;
	}

	public void setDisplayStatus(Boolean displayStatus) {
		this.displayStatus = displayStatus;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getStandardName() {
		return standardName;
	}

	public void setStandardName(String standardName) {
		this.standardName = standardName;
	}

	public Integer getField() {
		return field;
	}

	public void setField(Integer field) {
		this.field = field;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public User getHtUploader() {
		return htUploader;
	}

	public void setHtUploader(User htUploader) {
		this.htUploader = htUploader;
	}

	public Boolean getHtscFlag() {
		return htscFlag;
	}

	public Integer getLookPower() {
		return lookPower;
	}

	public void setLookPower(Integer lookPower) {
		this.lookPower = lookPower;
	}

	public void setHtscFlag(Boolean htscFlag) {
		this.htscFlag = htscFlag;
	}

}